package io.qar.skuAuditLogs.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.qar.commons.tools.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.qar.commons.mybatis.dto.CreateAndUpdatedDTO;

import java.io.Serializable;
import java.util.Date;

/**
* SKU审计日志表
*
* @author yyyyjinying 1020066395@qq.com
* @since 3.0 2024-06-10
*/
@Data
@ApiModel(value = "SKU审计日志表")
public class SkuAuditLogsDTO extends CreateAndUpdatedDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "审计记录ID")
    private Long auditId;
    @ApiModelProperty(value = "关联的SKU ID")
    private Long skuId;
    @ApiModelProperty(value = "操作类型")
    private Object action;
    @ApiModelProperty(value = "变更的字段及前后值（JSON格式）")
    private Object changedFields;
    @ApiModelProperty(value = "执行操作的用户ID")
    private Long userId;
    @ApiModelProperty(value = "操作时间")
    private Date timestamp;
    @ApiModelProperty(value = "餐厅id")
    private Long restaurantId;

}